﻿#include "EndPoint.h"
#include "ResourceManager.h"
#include <d3dx9.h>

EndPoint::EndPoint(int id,float x, float y, int type)
{
	_sprite = new Sprite(_spriteHandler, ResourceManager::GetInstance()->GetTexture(ResourceManager::GetInstance()->TextureName.EndPoint),0, 0);
	_id = id;
	_x = x;
	_y = y;
	_type = type;
	_width = _sprite->getTexture()->getWidth();
	_height = _sprite->getTexture()->getHeight();

}

EndPoint::~EndPoint(void)
{

}

void EndPoint::Update(list<Object *> *_list, float time)
{
	_sprite->Update(time);
	
}


void EndPoint:: Render(int vpX, int vpY)
{
	_sprite->Render(_x, _y, vpX, vpY);
	
}

OBJECT_TYPE EndPoint::getObjectType()
{
	return OBJECT_LAND;
}